package com.shopping.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class UserAspect {
    @Pointcut("execution(public int com.shopping.service.impl.UserService.addUser())")
    public  void  addUserCut(){}

    @Pointcut("execution(public int com.shopping.service.impl.UserService.deleteUser())")
    public  void  deleteUserCut(){}

    @Pointcut("execution(public int com.shopping.service.impl.UserService.editUser())")
    public void editUserCut(){}

    @Pointcut("execution(public int com.shopping.service.impl.UserService.selectUser())")
    public void selectUserCut(){}

    @Pointcut("execution(public int com.shopping.service.impl.UserService.getUserById())")
    public void getUserByIdCut(){}
}
